package com.platform.common.utils;


import com.platform.common.base.BackJsonBean;

/**
 * Ajax请求返回的JSON数据
 * 
 * @author LiangMingHui
 *
 */
public class BackJsonBeanUtil {

	/**
	 * @param status
	 *            1 成功 0 失败
	 * @param desc
	 *            结果描述
	 * @param url
	 *            js跳转url
	 * @param data
	 *            返回的数据对象
	 * @return
	 */
	public static final BackJsonBean<Object> getBackJsonBean(int status, String desc, String url, Object data) {
		BackJsonBean<Object> bean = new BackJsonBean<Object>();
		bean.setStatus(status);
		bean.setDesc(desc);
		bean.setUrl(url);
		bean.setData(data);
		return bean;
	}
}
